package chixing.day07.work;

public class SalesEmployee extends MyEmployee{
    private double salesAmount;
    private double commisionRate;
    public SalesEmployee()
    {
        super();
    }
    public SalesEmployee(String empName, int empNo, double empBaseSalary,double salesAmount,double commisionRate)
    {
        super(empName,empNo,empBaseSalary);
        this.salesAmount = salesAmount;
        this.commisionRate = commisionRate;
    }
    public double calculateSalary()
    {
        return super.calculateSalary() + salesAmount * commisionRate;
    }
}
